package br.com.iswe.core.exp;

import java.util.Collection;

@SuppressWarnings("unchecked")
public final class ISWEAsserts {

	public static void assertNotNull(Object object, String mensagem) {
		if(object == null){
			throw new ISWEConfigurationException(mensagem);
		}
	}

	public static void assertNotEmpty(Collection collection, String message) {
		if(collection == null || collection.isEmpty()){
			throw new ISWEBusinessException(message);
		}
	}	
}
